package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报警管理业务对象 n_warning_management
 *
 * @author cj
 * @date 2023-09-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NWarningManagementBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 部门id
     */
    @NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 类型（0：沥青拌合；1：混凝土拌合；2：水稳拌合）
     */
    @NotNull(message = "类型（0：沥青拌合；1：混凝土拌合；2：水稳拌合）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer typeId;

    /**
     * 菜单名称
     */
    @NotBlank(message = "菜单名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String typeName;

    /**
     * 低级预警下限
     */
    @NotNull(message = "低级预警下限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal downLowWarning;

    /**
     * 低级预警上限
     */
    @NotNull(message = "低级预警上限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal upLowWarning;

    /**
     * 中级预警下限
     */
    @NotNull(message = "中级预警下限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal downMiddleWarning;

    /**
     * 中级预警上限
     */
    @NotNull(message = "中级预警上限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal upMiddleWarning;

    /**
     * 高级预警下限
     */
    @NotNull(message = "高级预警下限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal downAdvancedWarning;

    /**
     * 高级预警上限
     */
    @NotNull(message = "高级预警上限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal upAdvancedWarning;


}
